<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018\9\1 0001
 * Time: 22:16
 */

include_once 'EuroAdapter.php';
include_once 'DollarCalc.php';

class Client{
    private $requestNow;
    private $dollarRequest;
    public function __construct()
    {
        $this->requestNow  = new EuroAdapter();
        $this->dollarRequest = new Dollarcalc();
        $euro = "&#8364";
        echo "Euros:$euro" . $this->makeAdapterRequest($this->requestNow);
        echo "Dollar:$" . $this->makeDollarRequest($this->dollarRequest);
    }

    public function makeAdapterRequest(ITarget $req){
        return $req->requesterCalc(40,50);
    }

    public function makeDollarRequest(Dollarcalc $req){
        return $req->requestCalc(40,50);
    }
}